<?php


namespace app\api\controller\xilumarket;


use app\common\controller\Api;

class ArticleCategory extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 列表
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function lists()
    {
        $lists = \app\common\model\xilumarket\ArticleCategory::field('id,name')->where('status','1')->order('weigh','desc')->select();
        $this->success('查询成功',$lists);
    }

}